package cn.com.infohold.smartcity.utils;

import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 * Created by Monsoon on 2017/6/23.
 */
public class RecyclerViewDivider extends RecyclerView.ItemDecoration{

    private int verticalSpaceHeight;

    public RecyclerViewDivider(int verticalSpace) {
        this.verticalSpaceHeight = verticalSpace;
    }

    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
        super.getItemOffsets(outRect, view, parent, state);
        outRect.set(0,0,0,verticalSpaceHeight);

    }
}
